/* GUI CONVERTED from rspoiq.p (converter v1.76) Thu May 30 14:01:32 2002 */
/* rspoiq.p - Release Management Supplier Schedules                     */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                  */
/* All rights reserved worldwide.  This is an unpublished work.         */
/* $Revision: 1.11.2.2 $                                                 */
/*V8:ConvertMode=Report                                                 */
/* REVISION: 7.3    LAST MODIFIED: 12/10/92           BY: WUG *G462*    */
/* REVISION: 7.3    LAST MODIFIED: 04/25/94           BY: WUG *GJ59*    */
/* REVISION: 7.3    LAST MODIFIED: 09/21/94           BY: ljm *GM77*    */
/* REVISION: 7.3    LAST MODIFIED: 10/20/94           BY: dpm *GN47*    */
/* REVISION: 7.5    LAST MODIFIED: 03/16/95           BY: dpm *J044*    */
/* REVISION: 7.3    LAST MODIFIED: 10/09/95           BY: vrn *G0YF*    */
/* REVISION: 8.6    LAST MODIFIED: 05/20/98           BY: *K1Q4* Alfred Tan */
/* REVISION: 8.6E   LAST MODIFIED: 08/17/98           BY: *L062* Steve Nugent */
/* REVISION: 8.6E   LAST MODIFIED: 10/04/98           BY: *J314* Alfred Tan   */
/* REVISION: 9.1    LAST MODIFIED: 08/12/00           BY: *N0KP* myb          */
/* Old ECO marker removed, but no ECO header exists *F0PN*                    */
/* $Revision: 1.11.2.2 $    BY: Dan Herman            DATE: 05/24/02  ECO: *P018*  */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

/* SCHEDULED ORDER INQUIRY */


/*GUI preprocessor directive settings */
&SCOPED-DEFINE PP_GUI_CONVERT_MODE REPORT

{mfdtitle.i "2+ "}

define new shared variable cmtindx like cmt_indx.
define variable line as integer no-undo.
define variable i as integer no-undo.
define variable impexp   like mfc_logical no-undo.
define variable subtype  as character format "x(12)"
   label "Subcontract Type" no-undo.

{pxmaint.i}
{pocnvars.i} /* Consignment variables */
{pocnpo.i}   /* Consignment procedures and frames */

{rsordfrm.i}

find first poc_ctrl no-lock.
find first gl_ctrl no-lock.

pocmmts = poc_hcmmts.

if no then find first pod_det no-lock.

/* DETERMINE IF SUPPLIER CONSIGNMENT IS ACTIVE */
{gprun.i ""gpmfc01.p""
   "(input ENABLE_SUPPLIER_CONSIGNMENT,
     input 11,
     input ADG,
     input SUPPLIER_CONSIGN_CTRL_TABLE,
     output using_supplier_consignment)"}

view frame a.

mainloop:
repeat:
   hide frame prm.
   hide frame pod1.

   {rsgetord.i "old" " " "x"}

   subtype = pod__qad16.

   find vd_mstr where vd_addr = ad_addr no-lock.

   find pt_mstr where pt_part = scx_part no-lock.

   find po_mstr where po_nbr = scx_order no-lock.
   find pod_det where pod_nbr = scx_order

      and pod_line = scx_line no-lock.

   /* OUTPUT DESTINATION SELECTION */
   {gpselout.i &printType = "terminal"
      &printWidth = 80
      &pagedFlag = " "
      &stream = " "
      &appendToFile = " "
      &streamedOutputToTerminal = " "
      &withBatchOption = "no"
      &displayStatementType = 1
      &withCancelMessage = "yes"
      &pageBottomMargin = 6
      &withEmail = "yes"
      &withWinprint = "yes"
      &defineVariables = "yes"}

   hide frame a.
   {rspoiq.i}

   {mfreset.i}
/*GUI*/ {mfgrptrm.i} /*Report-to-Window*/

   {pxmsg.i &MSGNUM=8 &ERRORLEVEL=1}
end.
